/**
 * Created by liyl on 2017/7/31. 百度BCP对接配置
 */
import send from '../../http'
export default {
  saveBaiduOcpcConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.saveBaiduOcpcConfig'
    }
    return send.fetch(req, 'post')
  },
  getBaiduOcpcConfigs (data) {
    let req = {
      data: data,
      action: 'config.channel.getBaiduOcpcConfigs'
    }
    return send.fetch(req, 'post')
  },
  updateBaiduOcpcConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.updateBaiduOcpcConfig'
    }
    return send.fetch(req, 'post')
  },
  removeBaiduOcpcConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.removeBaiduOcpcConfig'
    }
    return send.fetch(req, 'post')
  },
  saveOcpcTemplateConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.saveOcpcTemplateConfig'
    }
    return send.fetch(req, 'post')
  }
}
